package cn.sirun.com.fca.account.uitl;

import android.os.Handler;
import android.os.Message;

/**
 * @author vinsonhuang
 * @date 2018/6/27
 */
public class CountDownHandler extends Handler {

    private CountDownRunnable mRunnable;

    public CountDownHandler(CountDownRunnable runnable) {
        this.mRunnable = runnable;
    }

    @Override
    public void handleMessage(Message msg) {
        post(mRunnable);
    }

    public void destroy() {
        removeMessages(0);
    }
}
